<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>面试题库 | 个人笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    
    <link rel="prev" href="../Interview/In.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="8.1"
        data-chapter-title="面试题库"
        data-filepath="Interview/In2.md"
        data-basepath=".."
        data-revision="Fri Oct 19 2018 22:35:09 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="HTML/HTML1.html">
            
                
                    <a href="../HTML/HTML1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="HTML/HTML2.html">
            
                
                    <a href="../HTML/HTML2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        HTML元素分类
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="HTML/HTML3.html">
            
                
                    <a href="../HTML/HTML3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        HTML图片路径设置
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="HTML/HTML4.html">
            
                
                    <a href="../HTML/HTML4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        HTML表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="HTML/HTML5.html">
            
                
                    <a href="../HTML/HTML5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        HTML实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="HTML/HTML6.html">
            
                
                    <a href="../HTML/HTML6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        HTML列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="HTML/HTML7.html">
            
                
                    <a href="../HTML/HTML7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        HTML常见的元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="HTML/HTML8.html">
            
                
                    <a href="../HTML/HTML8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        HTML新增及删除的元素
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="CSS/CSS.html">
            
                
                    <a href="../CSS/CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="CSS/CSS1.html">
            
                
                    <a href="../CSS/CSS1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        css引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="CSS/CSS2.html">
            
                
                    <a href="../CSS/CSS2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        css表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="CSS/CSS3.html">
            
                
                    <a href="../CSS/CSS3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        css元素盒子模型及元素类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="CSS/CSS4.html">
            
                
                    <a href="../CSS/CSS4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        css处理文字溢出方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="CSS/CSS5.html">
            
                
                    <a href="../CSS/CSS5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        css伪类选择符及命名方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="CSS/CSS6.html">
            
                
                    <a href="../CSS/CSS6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        css选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="CSS/CSS7.html">
            
                
                    <a href="../CSS/CSS7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        css清除浮动
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="mobile/mb.html">
            
                
                    <a href="../mobile/mb.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        Mobile
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="mobile/mb1.html">
            
                
                    <a href="../mobile/mb1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        Mobile rem布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="mobile/mb2.html">
            
                
                    <a href="../mobile/mb2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        Mobile 权重值
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="mobile/mb3.html">
            
                
                    <a href="../mobile/mb3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        Mobile 栅格化布局
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="js/js.html">
            
                
                    <a href="../js/js.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        js
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="js/js2.html">
            
                
                    <a href="../js/js2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        JavaScript 数据类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="js/js3.html">
            
                
                    <a href="../js/js3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        JavaScript 数据类型2
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="js/js4.html">
            
                
                    <a href="../js/js4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.</b>
                        
                        JavaScript 数据类型转换
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="js/js5.html">
            
                
                    <a href="../js/js5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.</b>
                        
                        JavaScript 运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="js/js6.html">
            
                
                    <a href="../js/js6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.5.</b>
                        
                        JavaScript 运算符2
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="js/js7.html">
            
                
                    <a href="../js/js7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.6.</b>
                        
                        JavaScript 运算符3
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.7" data-path="js/js8.html">
            
                
                    <a href="../js/js8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.7.</b>
                        
                        JavaScript 运算符4
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8" data-path="js/js9.html">
            
                
                    <a href="../js/js9.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.</b>
                        
                        JavaScript 条件语句和循环语句
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5" data-path="vue/vue.html">
            
                
                    <a href="../vue/vue.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        vue
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1" data-path="vue/vue2.html">
            
                
                    <a href="../vue/vue2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.1.</b>
                        
                        vue指令
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="vue/vue3.html">
            
                
                    <a href="../vue/vue3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.2.</b>
                        
                        vue绑定class和style
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="vue/vue4.html">
            
                
                    <a href="../vue/vue4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.3.</b>
                        
                        vue条件渲染
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="vue/vue5.html">
            
                
                    <a href="../vue/vue5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.4.</b>
                        
                        vue绑定表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="vue/vue6.html">
            
                
                    <a href="../vue/vue6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.5.</b>
                        
                        vue路由
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="vue/vue7.html">
            
                
                    <a href="../vue/vue7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.6.</b>
                        
                        vue-cli3脚手架安装
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.7" data-path="vue/vue8.html">
            
                
                    <a href="../vue/vue8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.7.</b>
                        
                        vue组件之间的通讯
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6" data-path="smallpro/sp.html">
            
                
                    <a href="../smallpro/sp.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        smallpro
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7" data-path="other/oth.html">
            
                
                    <a href="../other/oth.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        其余重点
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1" data-path="other/oth2.html">
            
                
                    <a href="../other/oth2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.1.</b>
                        
                        什么叫跨域
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="other/oth3.html">
            
                
                    <a href="../other/oth3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.2.</b>
                        
                        vue生命周期
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="other/oth4.html">
            
                
                    <a href="../other/oth4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.3.</b>
                        
                        vue事件绑定
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="other/oth5.html">
            
                
                    <a href="../other/oth5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.4.</b>
                        
                        原型链
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="other/oth6.html">
            
                
                    <a href="../other/oth6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.5.</b>
                        
                        箭头函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="other/oth7.html">
            
                
                    <a href="../other/oth7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.6.</b>
                        
                        vue和vuex的区别
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.7" data-path="other/oth8.html">
            
                
                    <a href="../other/oth8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.7.</b>
                        
                        js的继承方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.8" data-path="other/oth9.html">
            
                
                    <a href="../other/oth9.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.8.</b>
                        
                        一次完整的HTTP事务
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.9" data-path="other/oth10.html">
            
                
                    <a href="../other/oth10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.9.</b>
                        
                        var和let声明变量的区别
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.10" data-path="other/oth11.html">
            
                
                    <a href="../other/oth11.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.10.</b>
                        
                        浏览器兼容问题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.11" data-path="other/oth12.html">
            
                
                    <a href="../other/oth12.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.11.</b>
                        
                        JS 事件绑定、事件监听、事件委托
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.12" data-path="other/oth13.html">
            
                
                    <a href="../other/oth13.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.12.</b>
                        
                        数据类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.13" data-path="other/oth14.html">
            
                
                    <a href="../other/oth14.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.13.</b>
                        
                        jq封装Ajax
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.14" data-path="other/oth15.html">
            
                
                    <a href="../other/oth15.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.14.</b>
                        
                        设置元素垂直居中或文字居中的方式
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="8" data-path="Interview/In.html">
            
                
                    <a href="../Interview/In.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        面试题库
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="8.1" data-path="Interview/In2.html">
            
                
                    <a href="../Interview/In2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.1.</b>
                        
                        面试题库
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >个人笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h3 id="&#x9762;&#x8BD5;&#x9898;&#x5E93;">&#x9762;&#x8BD5;&#x9898;&#x5E93;</h3>
<h4 id="&#x54CD;&#x5E94;&#x5F0F;&#x7F51;&#x9875;&#x6709;&#x4EC0;&#x4E48;&#x7279;&#x70B9;">&#x54CD;&#x5E94;&#x5F0F;&#x7F51;&#x9875;&#x6709;&#x4EC0;&#x4E48;&#x7279;&#x70B9;</h4>
<pre><code>1.&#x54CD;&#x5E94;&#x5F0F;&#x7F51;&#x7AD9;&#x6700;&#x5927;&#x7684;&#x7279;&#x70B9;&#x5C31;&#x662F;&#x4E0D;&#x7BA1;&#x5728;&#x7535;&#x8111;&#x3001;&#x5E73;&#x677F;&#x8FD8;&#x662F;&#x624B;&#x673A;&#x4E0A;&#xFF0C;
  H5&#x54CD;&#x5E94;&#x5F0F;&#x7F51;&#x7AD9;&#x90FD;&#x4F1A;&#x6839;&#x636E;&#x5C4F;&#x5E55;&#x5C3A;&#x5BF8;&#x81EA;&#x52A8;&#x8C03;&#x8282;&#x5927;&#x5C0F;&#xFF0C;&#x56FE;&#x7247;&#x5206;&#x8FA8;&#x7387;&#x7B49;&#x7B49;
2.&#x66F4;&#x5229;&#x4E8E;&#x5F15;&#x64CE;&#x7684;&#x641C;&#x7D22;
3.&#x540E;&#x671F;&#x7EF4;&#x62A4;&#x5927;&#x8282;&#x7EA6;&#x4E86;&#x5EFA;&#x8BBE;&#x6210;&#x672C;&#x3001;&#x7BA1;&#x7406;&#x6210;&#x672C;&#x3001;&#x7EF4;&#x62A4;&#x6210;&#x672C;
4.&#x589E;&#x52A0;&#x8F6C;&#x6362;&#x7387;
5.&#x4F1A;&#x4F7F;&#x4F01;&#x4E1A;&#x5F62;&#x8C61;&#x8DDF;&#x4E0A;&#x6F6E;&#x6D41;
6.&#x7F51;&#x7AD9;&#x5206;&#x6790;&#x66F4;&#x7CBE;&#x51C6;
</code></pre><pre><code class="lang-css">    &#x54CD;&#x5E94;&#x5F0F;&#x5E03;&#x5C40;&#xFF1A;
        &#x539F;&#x7406;&#xFF1A; 1.&#x5A92;&#x4F53;&#x67E5;&#x8BE2;
              2.&#x767E;&#x5206;&#x6BD4;
              3.flex&#x5E03;&#x5C40;

         bootstrap&#x6846;&#x67B6;&#x63D0;&#x4F9B;&#x4E86;&#x4E24;&#x79CD;&#x5BB9;&#x5668;
             1.container&#xFF1A;&#x5B9A;&#x5BBD;
             2.container-fluid&#xFF1A;&#x5BBD;&#x5EA6;&#x4E3A;&#x767E;&#x5206;&#x767E;


        &#x6805;&#x683C;&#x7CFB;&#x7EDF;
            &#x628A;&#x5BB9;&#x5668;&#x5206;&#x4E3A;12&#x4EFD;&#x3002;


        &#x7C7B;&#x540D;&#x524D;&#x7F00;                    &#x8BBE;&#x5907;&#x8303;&#x56F4;                &#x8BBE;&#x5907;&#x7684;&#x5BBD;&#x5EA6;&#x8303;&#x56F4;
            .col-                &#x8D85;&#x5C0F;&#x5C4F;                &lt;576px
            .col-sm-            &#x5C0F;&#x5C4F;                    &gt;=576px
            .col-md-            &#x4E2D;&#x7B49;&#x5C4F;&#x5E55;                &gt;=768px
            .col-lg-            &#x5927;&#x5C4F;                    &gt;=992px
            .col-xl-            &#x8D85;&#x5927;&#x5C4F;                &gt;=1200px
</code></pre>
<h4 id="&#x4EC0;&#x4E48;&#x662F;&#x6805;&#x683C;&#x5E03;&#x5C40;&#x7CFB;&#x7EDF;&#xFF0C;&#x8BF7;&#x7528;&#x4EE3;&#x7801;&#x8868;&#x793A;">&#x4EC0;&#x4E48;&#x662F;&#x6805;&#x683C;&#x5E03;&#x5C40;&#x7CFB;&#x7EDF;&#xFF0C;&#x8BF7;&#x7528;&#x4EE3;&#x7801;&#x8868;&#x793A;</h4>
<pre><code>&lt;div class=&quot;container&quot;&gt;
     &lt;div class=&quot;col-6&quot;&gt;1&lt;/div&gt;
     &lt;div class=&quot;col-6&quot;&gt;2&lt;/div&gt;
 &lt;/div&gt;
</code></pre><h4 id="rem&#x5E03;&#x5C40;">rem&#x5E03;&#x5C40;</h4>
<pre><code>rem&#x548C;em&#x8FD9;&#x4E24;&#x4E2A;&#x5355;&#x4F4D;&#x7684;&#x533A;&#x522B;&#xFF0C;rem&#x662F;&#x57FA;&#x4E8E;html&#x5143;&#x7D20;&#x7684;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x6765;&#x51B3;&#x5B9A;&#xFF0C;
&#x800C;em&#x5219;&#x6839;&#x636E;&#x4F7F;&#x7528;&#x5B83;&#x7684;&#x5143;&#x7D20;&#x7684;&#x5927;&#x5C0F;&#x51B3;&#x5B9A;&#xFF08;&#x5F88;&#x591A;&#x4EBA;&#x9519;&#x8BEF;&#x4EE5;&#x4E3A;&#x662F;&#x6839;&#x636E;&#x7236;&#x7C7B;&#x5143;&#x7D20;&#xFF0C;
&#x5B9E;&#x9645;&#x4E0A;&#x662F;&#x4F7F;&#x7528;&#x5B83;&#x7684;&#x5143;&#x7D20;&#x7EE7;&#x627F;&#x4E86;&#x7236;&#x7C7B;&#x7684;&#x5C5E;&#x6027;&#x624D;&#x4F1A;&#x4EA7;&#x751F;&#x7684;&#x9519;&#x89C9;&#xFF09;
</code></pre><h4 id="flex&#x5E03;&#x5C40;&#xFF08;&#x5F39;&#x6027;&#x5E03;&#x5C40;&#xFF09;">flex&#x5E03;&#x5C40;&#xFF08;&#x5F39;&#x6027;&#x5E03;&#x5C40;&#xFF09;</h4>
<pre><code>flex&#x5E03;&#x5C40;&#x5373;&#xFF08;&#x5F39;&#x6027;&#x5E03;&#x5C40;&#xFF09;
    &#x5F53;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#x8BBE;&#x7F6E;&#x4E86;flex&#x5E03;&#x5C40;&#x4E4B;&#x540E;&#xFF0C;&#x8BE5;&#x5143;&#x7D20;&#x53D8;&#x4E3A;&#x5F39;&#x6027;&#x76D2;&#x5B50;&#xFF0C;&#x79F0;&#x4E3A;&#x5BB9;&#x5668;
    &#x5BB9;&#x5668;&#x9ED8;&#x8BA4;&#x5B58;&#x5728;&#x4E24;&#x6839;&#x8F74;&#xFF1A;
    &#x6C34;&#x5E73;&#x7684;&#x4E3B;&#x8F74;&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x4ECE;&#x5DE6;&#x5230;&#x53F3;&#xFF09;&#x548C;&#x5782;&#x76F4;&#x7684;&#x4EA4;&#x53C9;&#x8F74;&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x4ECE;&#x4E0A;&#x5230;&#x4E0B;&#xFF09;
    &#x5176;&#x6240;&#x6709;&#x5B50;&#x5143;&#x7D20;&#x79F0;&#x4E3A;&#x9879;&#x76EE;&#xFF0C;&#x4E14;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x5BBD;&#x9AD8;&#xFF0C;&#x4E14;&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#x6240;&#x6709;&#x5B50;&#x5143;&#x7D20;&#x90FD;&#x5728;&#x4E00;&#x884C;&#x6392;&#x5217;&#xFF08;&#x65E0;&#x8BBA;&#x662F;&#x5757;&#x7EA7;&#x5143;&#x7D20;&#x8FD8;&#x662F;&#x884C;&#x5185;&#x5143;&#x7D20;&#xFF09;&#x3002;

&#x5BB9;&#x5668;&#x4E0A;&#x7684;&#x5C5E;&#x6027;
    1.flex-direction&#xFF1A;&#x5C5E;&#x6027;&#x51B3;&#x5B9A;&#x4E3B;&#x8F74;&#x7684;&#x65B9;&#x5411;&#xFF08;&#x5373;&#x9879;&#x76EE;&#x7684;&#x6392;&#x5217;&#x65B9;&#x5411;&#xFF09;&#x3002;
        row:&#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x4ECE;&#x5DE6;&#x5230;&#x53F3;&#x3002;
        row-reverse:&#x4ECE;&#x53F3;&#x5230;&#x5DE6;
        column&#xFF1A;       &#x4ECE;&#x4E0A;&#x5230;&#x4E0B;
        column-reverse&#xFF1A;&#x4ECE;&#x4E0B;&#x5230;&#x4E0A;

    &#x6CE8;&#x610F;&#xFF1A;&#x4F46;&#x8BBE;&#x7F6E;&#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x6539;&#x53D8;&#x4E3B;&#x8F74;&#x7EBF;&#x7684;&#x65B9;&#x5411;    

    2. flex-warp&#xFF1A;&#x8BBE;&#x7F6E;&#x9879;&#x76EE;&#x662F;&#x5426;&#x6362;&#x884C;
            nowarp &#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x4E0D;&#x6362;&#x884C;
            wrap     &#x6362;&#x884C;
            wrap-reverse &#x53CD;&#x5411;&#x6362;&#x884C;

    3.flex-flow:&#x662F;flex-direction&#x548C;flex-wrap&#x7684;&#x7B80;&#x5199;&#x5F62;&#x5F0F;&#xFF0C;&#x9ED8;&#x8BA4;&#x503C; row nowrap

    4. justify-content&#x5C5E;&#x6027;&#x5B9A;&#x4E49;&#x4E86;&#x9879;&#x76EE;&#x5728;&#x4E3B;&#x8F74;&#x4E0A;&#x7684;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;&#x3002;
            flex-start&#xFF1A;&#x4E3B;&#x8F74;&#x7684;&#x5F00;&#x59CB;&#x4F4D;&#x7F6E;&#x5BF9;&#x9F50;
            flex-end&#xFF1A;&#x4E3B;&#x8F74;&#x7684;&#x7ED3;&#x675F;&#x4F4D;&#x7F6E;&#x5BF9;&#x9F50;
            center&#xFF1A; &#x4E3B;&#x8F74;&#x7684;&#x4E2D;&#x5FC3;&#x4F4D;&#x7F6E;&#x5BF9;&#x9F50;
            space-between&#xFF1A;&#x4E24;&#x7AEF;&#x5BF9;&#x9F50;&#xFF0C;&#x9879;&#x76EE;&#x4E4B;&#x95F4;&#x7684;&#x95F4;&#x9694;&#x90FD;&#x76F8;&#x7B49;&#x3002;
            space-around&#xFF1A;&#x6BCF;&#x4E2A;&#x9879;&#x76EE;&#x4E24;&#x4FA7;&#x7684;&#x95F4;&#x9694;&#x76F8;&#x7B49;&#x3002;&#x7559;&#x767D;&#x7684;&#x95F4;&#x8DDD;&#x662F;&#x9879;&#x76EE;&#x4E4B;&#x95F4;&#x7684;&#x95F4;&#x8DDD;&#x7684;&#x4E00;&#x534A;&#x3002;

    5. allgn-items:&#x8BBE;&#x7F6E;&#x4EA4;&#x53C9;&#x8F74;&#x4E0A;&#x7684;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;
            flex-start&#xFF1A;&#x4EA4;&#x53C9;&#x8F74;&#x7684;&#x8D77;&#x70B9;&#x5BF9;&#x9F50;&#x3002;
            flex-end&#xFF1A;&#x4EA4;&#x53C9;&#x8F74;&#x7684;&#x7EC8;&#x70B9;&#x5BF9;&#x9F50;&#x3002;
            center&#xFF1A;&#x4EA4;&#x53C9;&#x8F74;&#x7684;&#x4E2D;&#x70B9;&#x5BF9;&#x9F50;&#x3002;
            baseline: &#x9879;&#x76EE;&#x7684;&#x7B2C;&#x4E00;&#x884C;&#x6587;&#x5B57;&#x7684;&#x57FA;&#x7EBF;&#x5BF9;&#x9F50;&#x3002;
            stretch&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF09;&#xFF1A;&#x5982;&#x679C;&#x9879;&#x76EE;&#x672A;&#x8BBE;&#x7F6E;&#x9AD8;&#x5EA6;&#x6216;&#x8BBE;&#x4E3A;auto&#xFF0C;&#x5C06;&#x5360;&#x6EE1;&#x6574;&#x4E2A;&#x5BB9;&#x5668;&#x7684;&#x9AD8;&#x5EA6;&#x3002;

    6.allgn-content:&#x8BBE;&#x7F6E;&#x591A;&#x6839;&#x8F74;&#x7EBF;&#x7684;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;&#xFF08;&#x53EA;&#x6709;&#x4E00;&#x6839;&#x8F74;&#x7EBF;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x6B64;&#x5C5E;&#x6027;&#x4E0D;&#x751F;&#x6548;&#xFF09;
            flex-start&#xFF1A;&#x4EA4;&#x53C9;&#x8F74;&#x7684;&#x8D77;&#x70B9;&#x5BF9;&#x9F50;&#x3002;
            flex-end&#xFF1A;&#x4EA4;&#x53C9;&#x8F74;&#x7684;&#x7EC8;&#x70B9;&#x5BF9;&#x9F50;&#x3002;
            center&#xFF1A;&#x4EA4;&#x53C9;&#x8F74;&#x7684;&#x4E2D;&#x70B9;&#x5BF9;&#x9F50;&#x3002;
            space-around:&#x4EA4;&#x53C9;&#x8F74;&#x7684;&#x4E24;&#x7AEF;&#x5BF9;&#x9F50;&#xFF0C;&#x6709;&#x7559;&#x767D;
            space-between&#x9ED8;&#x8BA4;&#x503C;&#xFF09;&#xFF1A;&#x4EA4;&#x53C9;&#x8F74;&#x4E24;&#x7AEF;&#x5BF9;&#x9F50;
            stretch:&#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x9ED8;&#x8BA4;&#x9879;&#x76EE;&#x5360;&#x6EE1;&#x5176;&#x7236;&#x7EA7;&#x5143;&#x7D20;&#x7684;&#x9AD8;&#x5EA6;
</code></pre><h4 id="&#x4EC0;&#x4E48;&#x662F;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#xFF1F;">&#x4EC0;&#x4E48;&#x662F;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#xFF1F;</h4>
<pre><code>&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#x6307;&#x7684;&#x662F;&#x5728;&#x4E0D;&#x6539;&#x53D8;&#x9875;&#x9762;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x6839;&#x636E;&#x4E0D;&#x540C;&#x7684;&#x8BBE;&#x5907;&#x5927;&#x5C0F;&#xFF0C;&#x663E;&#x793A;&#x6548;&#x679C;

&#x6CE8;&#x610F;&#xFF1A;&#x5728;&#x4F7F;&#x7528;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#x65F6;&#x5FC5;&#x987B;&#x5F15;&#x7528;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,
initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no&quot; /&gt;&#x6807;&#x7B7E;
&#x5426;&#x5219;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#x5C06;&#x4E0D;&#x4F1A;&#x751F;&#x6548;

&#x76D1;&#x542C;&#x4E0D;&#x540C;&#x8BBE;&#x5907;
media only screen and (min-width:375px){}&#x76D1;&#x542C;iPhone6/7/8
@media only screen and (min-width:414px){}&#x76D1;&#x542C;iPhone6/7/8 Plus
</code></pre><h4 id="js&#x6570;&#x7EC4;&#x5FEB;&#x901F;&#x6392;&#x5E8F;">js&#x6570;&#x7EC4;&#x5FEB;&#x901F;&#x6392;&#x5E8F;</h4>
<pre><code class="lang-css">    function quickSort(arr){
        if(arr.length&lt;=1){
            return arr;//&#x5982;&#x679C;&#x6570;&#x7EC4;&#x53EA;&#x6709;&#x4E00;&#x4E2A;&#x6570;&#xFF0C;&#x5C31;&#x76F4;&#x63A5;&#x8FD4;&#x56DE;&#xFF1B;
        }
        var num = Math.floor(arr.length/2);//&#x627E;&#x5230;&#x4E2D;&#x95F4;&#x6570;&#x7684;&#x7D22;&#x5F15;&#x503C;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x6D6E;&#x70B9;&#x6570;&#xFF0C;&#x5219;&#x5411;&#x4E0B;&#x53D6;&#x6574;
        var numValue = arr.splice(num,1);//&#x627E;&#x5230;&#x4E2D;&#x95F4;&#x6570;&#x7684;&#x503C;
        var left = [];
        var right = [];
        for(var i=0;i&lt;arr.length;i++){
            if(arr[i]&lt;numValue){
                left.push(arr[i]);//&#x57FA;&#x51C6;&#x70B9;&#x7684;&#x5DE6;&#x8FB9;&#x7684;&#x6570;&#x4F20;&#x5230;&#x5DE6;&#x8FB9;&#x6570;&#x7EC4;
            }
            else{
               right.push(arr[i]);//&#x57FA;&#x51C6;&#x70B9;&#x7684;&#x53F3;&#x8FB9;&#x7684;&#x6570;&#x4F20;&#x5230;&#x53F3;&#x8FB9;&#x6570;&#x7EC4;
            }
        }
        return quickSort(left).concat([numValue],quickSort(right));//&#x9012;&#x5F52;&#x4E0D;&#x65AD;&#x91CD;&#x590D;&#x6BD4;&#x8F83;
    }
    alert(quickSort([88,11,22,9,15,32]));//&#x5F39;&#x51FA;&#x201C;2,16,32,37,45,87&#x201D;
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../Interview/In.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 面试题库"><i class="fa fa-angle-left"></i></a>
        
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
